package com.easygoods.dao;

import com.easygoods.base.BaseDao;
import com.easygoods.entity.MemberHotSpu;
import com.easygoods.entityex.GoodsSpuEx;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 张海强 on 2019-2-25.
 */
@Repository
public interface MemberHotSpuDao extends BaseDao<MemberHotSpu> {

    void updateBySpuNum(@Param("id") String id, @Param("num") int num);

    //获取热销商品
    List<GoodsSpuEx> getHotSpuListByMemberId(@Param("memberId") String memberId);
}
